﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using MyFloridaHouse.libSvUtilities;
using System.IO;

namespace MyFloridaHouse.libSvOpenDistricts.SummaryDataGrid
{
    public partial class SummaryDataGridManager
    {
        private bool CmdFileSaveDataGridCanExecute(object parameter)
        {
            return true;
        }

        private void CmdFileSaveDataGridExecute(object parameter)
        {
            string filter = "Comma Separated Values (.csv) | *.csv";
            string defaultExtension = "csv";
            OutputFileGenerator outputFileGenerator = this.ToCSV;
            if (LocalFileManager.SaveFileLocal(outputFileGenerator, filter, defaultExtension))
            {
                MessageBox.Show("File Save Complete");
            }
        }
    }

}


